<template>
	<view class="follow">
		<follow-nav :page="page"></follow-nav>
		<follow-list :list="list"></follow-list>
		<tab></tab>
	</view>
</template>

<script>
	import followNav from '../../components/followNav.vue'
	import tab from '../../components/tab.vue'
	import followList from '../../components/followList.vue'
	export default {
		components:{
			followNav,
			tab,
			followList
		},
		data() {
			return {
				page:"follow",
				list:[]
			}
		},
		methods: {
			getVideo(){
				uni.request({
					url:'http://124.221.26.166:8080/videos/videos.json',
					success: (res) => {
						// console.log(res.data)
						this.list=res.data.list.slice(0,3)
						// console.log(this.list)
						
					}
				})
			}
		},
		created(){
			this.getVideo()
		}
	}
</script>

<style>
	.follow{
		width: 100%;
		height: 100%;
		background: #000000;
	}

</style>
